package metier;

public class Contient {
	private int nbPoisson;
	private int especeID;
	private int numero;
	
	public Contient(int nbPoisson, int especeID, int numero) {
		super();
		this.nbPoisson = nbPoisson;
		this.especeID = especeID;
		this.numero = numero;
	}
	public int getNbPoisson() {
		return nbPoisson;
	}
	public void setNbPoisson(int nbPoisson) {
		this.nbPoisson = nbPoisson;
	}
	public int getEspeceID() {
		return especeID;
	}
	public void setEspeceID(int especeID) {
		this.especeID = especeID;
	}
	public int getNumero() {
		return numero;
	}
	public void setNumero(int numero) {
		this.numero = numero;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + especeID;
		result = prime * result + nbPoisson;
		result = prime * result + numero;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Contient other = (Contient) obj;
		if (especeID != other.especeID)
			return false;
		if (nbPoisson != other.nbPoisson)
			return false;
		if (numero != other.numero)
			return false;
		return true;
	}
	@Override
	public String toString() {
		StringBuilder stringBuilder = new StringBuilder();
		stringBuilder.append("Contient [nbPoisson=");
		stringBuilder.append(nbPoisson);
		stringBuilder.append(", especeID=");
		stringBuilder.append(especeID);
		stringBuilder.append(", numero=");
		stringBuilder.append(numero);
		stringBuilder.append("]");
		return stringBuilder.toString();
	}
	
	

}
